<script lang="ts" setup>
// import { NotificationsCircle } from "@vicons/ionicons5";
import BaseWindow from "@/components/base-window/index.vue";
import u125Svg from "@/assets/svg/u125.svg";
const data = [
  {
    icon: u125Svg,
    name: "温度",
    value: "35度",
  },
  {
    icon: u125Svg,
    name: "湿度",
    value: "35度",
  },
  {
    icon: u125Svg,
    name: "雨晴",
    value: "小雨 12mm",
  },
  {
    icon: u125Svg,
    name: "风向",
    value: "东南方",
  },
];
</script>
<template>
  <BaseWindow title="气象站信息">
    <div class="wrapper">
      <div v-for="item in data" class="info-item">
        <div class="left">
          <img :src="item.icon" />
        </div>
        <div class="right">
          <div class="name">{{ item.name }}</div>
          <div class="value">{{ item.value }}</div>
        </div>
      </div>
    </div>
  </BaseWindow>
</template>
<style lang="scss" scoped>
.wrapper {
  padding: 15px 30px;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 500px;
  display: flex;
  .info-item {
    display: flex;
    width: 190px;
    align-items: center;
    .right {
      margin-left: 12px;
    }
    .name {
      color: #23fffc;
      font-size: 28px;
      font-weight: 700;
    }
    .value {
      font-size: 16px;
      color: rgba(255, 255, 255, 0.5);
    }
  }
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
</style>
<style></style>
